package com.example.demo.bridge_method;

import org.springframework.core.ResolvableType;

public class A<T>{
    protected String namespace;
    public A(){
        ResolvableType t= ResolvableType.forType(getClass().getGenericSuperclass());
        namespace=t.getGeneric(0).resolve().getSimpleName();
    }
}